| | |
| | | import com.dy.pmsGlobal.pojoBa.BaLog; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.Date; |
| | | |
| | | @Service |
| | | public class LogService { |
| | | |
| | | @Autowired |
| | | private BaLogMapper dao; |
| | | |
| | | @Autowired |
| | | public void setDao(BaLogMapper dao) { |
| | | this.dao = dao; |
| | | } |
| | | @Transactional |
| | | public void save(long operator,String operatorName, String operation,String ip,String code,String msg) { |
| | | BaLog log = new BaLog(); |
| | | log.userId=operator; |
| | |
| | | * @param disabled |
| | | * @return |
| | | */ |
| | | @Transactional |
| | | public int disabled(Long id,Boolean disabled) { |
| | | BaRole role=new BaRole(); |
| | | role.id=id; |
| | |
| | | * @param disabled |
| | | * @return |
| | | */ |
| | | @Transactional |
| | | public int disabled(Long id,Boolean disabled) { |
| | | BaUser user=new BaUser(); |
| | | user.id=id; |
| | |
| | | return rsVo ; |
| | | } |
| | | |
| | | @Transactional |
| | | public int disabled(Long id, Boolean disabled) { |
| | | PltProductQualityInspectionItems item = new PltProductQualityInspectionItems(); |
| | | item.setId(id); |
| | |
| | | return rsVo ; |
| | | } |
| | | |
| | | @Transactional |
| | | public int disabled(Long id, Boolean disabled) { |
| | | PltProductScrappingReason reason = new PltProductScrappingReason(); |
| | | reason.setId(id); |
| | |
| | | return rsVo ; |
| | | } |
| | | |
| | | @Transactional |
| | | public int disabled(Long id, Boolean disabled) { |
| | | PltProductUnqualifiedReason reason = new PltProductUnqualifiedReason(); |
| | | reason.setId(id); |
| | |
| | | return rsVo ; |
| | | } |
| | | |
| | | @Transactional |
| | | public int disabled(Long id, Boolean disabled) { |
| | | PltStation station = new PltStation(); |
| | | station.setId(id); |