| | |
| | | import com.stylefeng.guns.core.base.controller.BaseController; |
| | | import com.stylefeng.guns.core.beetl.ShiroExtUtil; |
| | | import com.stylefeng.guns.core.common.constant.factory.PageFactory; |
| | | import com.stylefeng.guns.core.shiro.ShiroKit; |
| | | import com.stylefeng.guns.core.util.DateUtil; |
| | | import com.stylefeng.guns.core.util.ToolUtil; |
| | | import com.stylefeng.guns.modular.system.model.TAdditionalFee; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | |
| | | @Controller |
| | | @RequestMapping("/tAdditionalFee") |
| | | public class TAdditionalFeeController extends BaseController { |
| | | |
| | | |
| | | private String PREFIX = "/system/tAdditionalFee/"; |
| | | |
| | | |
| | | @Autowired |
| | | private ITAdditionalFeeService additionalFeeService; |
| | | |
| | | |
| | | @Resource |
| | | private ShiroExtUtil shiroExtUtil; |
| | | |
| | | @RequestMapping("") |
| | | public String index(){ |
| | | public String index() { |
| | | return PREFIX + "tAdditionalFee.html"; |
| | | } |
| | | |
| | | |
| | | /// 跳转添加 |
| | | @RequestMapping("/tAdditionalFee_add") |
| | | public String tAdditionalFee_add(){ |
| | | public String tAdditionalFee_add() { |
| | | return PREFIX + "tAdditionalFee_add.html"; |
| | | } |
| | | |
| | |
| | | @RequestMapping("/add") |
| | | @ResponseBody |
| | | public Object add(TAdditionalFee additionalFee){ |
| | | Integer companyId = ShiroExtUtil.getUser().getObjectId(); |
| | | Integer companyId = shiroExtUtil.getUser().getObjectId(); |
| | | additionalFee.setCreateTime(DateUtil.parseTime(DateUtil.getTime())); |
| | | additionalFee.setState(1); |
| | | additionalFee.setCompanyId(companyId); |